package com.usian.controller;

import com.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.User;

@RestController
public class ProviderController {

    @Autowired
    private UserService service;

    @RequestMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Integer id){
     return service.getUserById(id);
    }



}
